home *** CD-ROM | disk | FTP | other *** search
/ Robotics & Artificial Int…3 (Professional Edition) / Robotics & Artificial Intelligence Tools 2003 (Professional Edition).iso / neural network tool and application / nsinstall.exe / data1.cab / Demos_Files / Linear_Associator / ArbitrarySynapse.nsm next >
Encoding:
Text File  |  2002-03-08  |  2.0 KB  |  53 lines

  1. subtitleTextBox. setText ("")
  2. mainTextBox. setText ("")
  3.  
  4. activeBreadboard. setAnimatePoint ( 20 , 225 )
  5. activeBreadboard. stampAndMove ( "Axon" , "inputAxon" )
  6. activeBreadboard. setAnimatePoint ( 110 , 225 )
  7. activeBreadboard. stampAndMove ( "ArbitrarySynapse" , "outputSynapse" )
  8. inputAxon. connectTo ( "outputSynapse" )
  9. activeBreadboard. setAnimatePoint ( 200 , 225 )
  10. activeBreadboard. stampAndMove ( "L2Criterion" , "criterion" )
  11. outputSynapse. connectTo ( "criterion" )
  12.  
  13. inputAxon. setRows ( 48 )
  14. inputAxon. setCols ( 48 )
  15. criterion. setRows ( 7 )
  16. criterion. setCols ( 30 )
  17.  
  18. outputSynapse. setNConnections ( 2 )
  19. outputSynapse. setAutoconnect ( 2 )
  20.  
  21. activeBreadboard. setAnimatePoint ( 15 , 200 )
  22. activeBreadboard. stampAndMove ( "StaticControl" , "control" )
  23. activeBreadboard. stampOnAndMove ( "BackStaticControl" , "control" )
  24. controlBackprop. setGradientClassName ( "Momentum" )
  25. controlBackprop. allocateBackpropPlane (  )
  26. outputSynapseBackpropGradient. setStepSize ( 0.2 )
  27.  
  28. activeBreadboard. stampOnAndMove ( "File" , "inputAxon" )
  29. file. setName ("inputFile")
  30. inputFile. setActiveAccessPoint ( "Pre-Activity" )
  31. inputFilePath = macro. pathFromMacro ( "jcspict.bmp" )
  32. inputFile. addFile ( inputFilePath , FALSE )
  33. inputFile. setNormalize ( FALSE )
  34. inputFile. translate (  )
  35.  
  36. activeBreadboard. stampOnAndMove ( "File" , "criterion" )
  37. file. setName ("desiredFile")
  38. desiredFile. setActiveAccessPoint ( "Desired Signal" )
  39. desiredFilePath = macro. pathFromMacro ( "jcstext.bmp" )
  40. desiredFile. addFile ( desiredFilePath , FALSE )
  41. desiredFile. setNormalize ( FALSE )
  42. desiredFile. translate (  )
  43.  
  44. activeBreadboard. select ( NULL , FALSE )
  45. control. setEpochs ( 100 )
  46.  
  47. activeBreadboard. stampOnAndMove ( "ArrowEngine" , "outputSynapse" )
  48.  
  49. NextMacroPath = macro. pathFromMacro ( "ImageViewer.nsm" )
  50. nextButton. setMacroPath ( NextMacroPath )
  51. SubtitleIndex = subtitleTextBox. setTextFromFile (TextBoxPath, SubtitleIndex)
  52. MainIndex = mainTextBox. setTextFromFile (TextBoxPath, MainIndex)
  53.